# $Id: PKGBUILD 69134 2012-04-09 18:02:18Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=iec16022
pkgver=0.2.4
pkgrel=1
pkgdesc="Produce 2D barcodes often also referenced as DataMatrix"
arch=('i686' 'x86_64')
url="http://datenfreihafen.org/projects/iec16022.html"
license=('GPL')
depends=('popt' 'zlib')
options=('!libtool')
source=(http://datenfreihafen.org/~stefan/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('9395108f1deaa2c4bd6d05a9e7c91431')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
              --disable-static
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}
